// post请求，获取菜单
export const postMenu = (params, config = {}) => uni.$uv.http.post('/api/auth/getUserInfo', params, config)
export const updateUserInfo = (params) => uni.$uv.http.post('/api/auth/updateUserInfo', params)
export const userLogin = (params, config = {}) => uni.$uv.http.post('/api/auth/login', params, config)
export const userRegister = (params, config = {}) => uni.$uv.http.post('/api/auth/register', params, config)
export const refreshToken = (params) => uni.$uv.http.get('/api/auth/refreshToken', {params})

// get请求，获取菜单，注意：get请求的配置等，都在第二个参数中，详见前面解释
export const getUserInfo = (data) => uni.$uv.http.get('/api/auth/getUserInfo', data)
export const getUserInfo1 = (params) => uni.$uv.http.get('/api/user/getUserInfo', {params})
export const attendanceStatus = (data) => uni.$uv.http.get('/api/test/attendanceStatus', data)
export const getSendSms = (phone) => uni.$uv.http.get('/api/common/sendSms', {params:{phone}})
export const phoneLogin = (params) => uni.$uv.http.get('/api/auth/phoneLogin', {params})
export const findPassword = (params) => uni.$uv.http.get('/api/auth/findPassword', {params})
